﻿using GiaoTrinhEPU.Repositories.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface IExportRepository
    {
        void CreateExport(Export item);
        void UpdateExport(Export item);
        void DeleteExport(int id);

        IEnumerable<ExportModel> ListExports(bool cacheEnabled = true);
        Export GetExportById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
